import org.annoflow.audit.Logger;

import student.web.Application;
import student.web.internal.CurrentUserMap;
import student.web.internal.SharedPersistenceMap;

public class FaceApp
{
	CurrentUserMap<User> currentUser = new CurrentUserMap<User>(User.class);
	SharedPersistenceMap<User> users	 = new SharedPersistenceMap<User>(User.class);
	public FaceApp()
	{
		//super("mjw87-app");
	}


	public boolean login(String userName, String password)
	{
		if (userName.equals("mjw87") && password.equals("foobar"))
		{
			currentUser.setCurrentUser(new User());
			return true;
		}

		return false;
	}
	public void logout()
	{
		
	}
	public boolean isLoggedIn()
	{
		return currentUser.getCurrentUser() != null;
	}
	public User getUser()
	{
		User current = currentUser.getCurrentUser();
		return current;
	}
}
